import request from "@/utils/request";

export function getDishes(params) {
  return request({
    url: "/dish/page",
    method: "get",
    params,
  });
}

export function changeStatus(status, params) {
  return request({
    url: `/dish/status/${status}`,
    method: "post",
    params,
  });
}

export function uploadFile(data) {
  return request({
    url: `/common/upload`,
    method: "post",
    data,
  });
}
